import React, { PropsWithChildren } from "react"
import { SizeType } from "."

export interface ConfigContextType {
    space ?: {
        size?: SizeType
    }
}

export const ConfigContext = React.createContext<ConfigContextType>({})

interface ConfigProviderType extends PropsWithChildren<ConfigContextType>{

}
export function ConfigProvider(props: ConfigProviderType) {
    const {
        space,
        children
      } = props;
      return <ConfigContext.Provider value={{space}}>
        {children}
      </ConfigContext.Provider>
}